import type { RouteRecordRaw } from 'vue-router'
import { Layout } from '@ag/design'

const router: RouteRecordRaw = {
  redirect: '/local/list',
  path: '/local',
  component: Layout,
  name: 'local',
  meta: {
    title: '本地路由',
    disableAuth: true,
    iconName: 'icon-svg-settings',
    visible: true
  },
  children: [
    {
      path: 'list',
      component: () => import('@/views/demo-list/index.vue'),
      name: 'localList',
      meta: {
        breadcrumb: false,
        title: 'local 列表页',
        disableAuth: true,
        visible: true
      }
    },
    {
      path: 'demo-map',
      component: () => import('@/views/three-map/index.vue'),
      name: 'demoMap',
      meta: {
        breadcrumb: false,
        title: 'Demo Map',
        disableAuth: true,
        visible: true
      }
    }
  ]
}

export default router
